package com.dms.modules.community.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("community_search_history")
@ApiModel(value = "社区搜索历史", description = "社区搜索历史记录")
public class CommunitySearchHistory {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("搜索关键词")
    private String keyword;
    
    @ApiModelProperty("搜索次数")
    private Integer searchCount;
    
    @ApiModelProperty("分类ID")
    private Long categoryId;
    
    @ApiModelProperty("最后搜索时间")
    private LocalDateTime lastSearchTime;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @TableLogic
    @ApiModelProperty("逻辑删除标志（0：未删除，1：已删除）")
    private Integer deleted;
} 